home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / c / c-tools-.000 / c-tools- / c-tools-0.4 / examples / Makefile next >
Encoding:
Makefile  |  1995-08-13  |  1.2 KB  |  46 lines

  1. ALLFILES=obscure.normal obscure.unreadable obscure.silly \
  2.     highlight.out hsort.out
  3. ALLTEST=tst/obscure.normal tst/obscure.unreadable tst/obscure.silly \
  4.     tst/highlight.out tst/hsort.out
  5.  
  6. all: $(ALLFILES)
  7.  
  8. obscure.normal: stripcr.c ../obscure
  9.     @echo "/* output of "\`"obscure stripcr.c obscure.normal' */" \
  10.     >obscure.normal
  11.     ../obscure stripcr.c >> obscure.normal
  12.  
  13. obscure.unreadable: stripcr.c ../obscure
  14.     @echo \
  15.     "/* output of "\`"obscure -u -w 40 stripcr.c obscure.unreadable' */" \
  16.     > obscure.unreadable
  17.     ../obscure -u -w 40 stripcr.c >> obscure.unreadable
  18.  
  19. obscure.silly: stripcr.c ../obscure
  20.     @echo "/* output of "\`"obscure -s stripcr.c obscure.silly' */" \
  21.     >obscure.silly
  22.     ../obscure -s stripcr.c >>obscure.silly
  23.  
  24. highlight.out: stripcr.c ../highlight
  25.     @echo "/* output of "\`"highlight stripcr.c highlight.out' */" \
  26.     >highlight.out
  27.     ../highlight stripcr.c >>highlight.out
  28.  
  29. hsort.out: stripcr.c ../hsort
  30.     @echo "/* output of "\`"hsort stripcr.c hsort.out' */" >hsort.out
  31.     ../hsort stripcr.c >>hsort.out
  32.  
  33. ../obscure ../highlight ../hsort:
  34.     @echo "please re-build binaries."
  35.     @exit 1
  36.  
  37. test: $(ALLFILES) $(ALLTEST)
  38.     @(for f in $(ALLFILES) ; do cmp $$f tst/$$f; done)
  39.  
  40. copytest: $(ALLFILES)
  41.     cp $(ALLFILES) tst
  42.  
  43. clean:
  44.     rm -f core *~
  45.     rm -f $(ALLFILES)
  46.